package com.shxzz.easy12306.services.ticket.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shxzz.easy12306.services.ticket.dao.entity.SeatCountDO;
import com.shxzz.easy12306.services.ticket.dao.entity.SeatDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 座位信息持久层接口
 */
@Mapper
public interface SeatMapper extends BaseMapper<SeatDO> {

    /**
     * 根据条件查询车厢座位余量
     * @param seatDO 指定列车、出发站、到达站、座位类型
     * @return 查询结果
     */
    List<SeatCountDO> countRemainTicketByCarriage(SeatDO seatDO);
}




